package com.example.fw;

import org.netbeans.jemmy.operators.JFrameOperator;
import org.netbeans.jemmy.operators.JMenuBarOperator;

/**
 * Created with IntelliJ IDEA.
 * User: pshevchenko
 * Date: 01.04.13
 * Time: 17:21
 * To change this template use File | Settings | File Templates.
 */
public class MenuHelper extends HelperBase{

    public MenuHelper(ApplicationManager applicationManager) {
        super(applicationManager);
    }

    public MenuHelper initFolderCreation() {
        JMenuBarOperator menuBar = new JMenuBarOperator(mainFrame);
        menuBar.pushMenuNoBlock("File|New folder...");

        return this;
    }

    public MenuHelper initFolderRemoval() {
        JMenuBarOperator menuBar = new JMenuBarOperator(mainFrame);
        menuBar.pushMenuNoBlock("File|Delete");

        return this;
        //To change body of created methods use File | Settings | File Templates.
    }
}
